package com.fsnbigdata.domain.query;

import com.fsnbigdata.domain.QEcosystem;
import com.fsnbigdata.domain.QOrganism;
import com.querydsl.core.types.dsl.StringExpression;
import org.springframework.data.querydsl.binding.QuerydslBinderCustomizer;
import org.springframework.data.querydsl.binding.QuerydslBindings;

/**
 * Created by zhongcheng on 14/11/2017.
 */
public class EcosystemQueryDslBinder implements QuerydslBinderCustomizer<QEcosystem> {

    @Override
    public void customize(QuerydslBindings bindings, QEcosystem root) {
        bindings.bind(root.name).first(StringExpression::containsIgnoreCase);
    }
}
